<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="56dp"
    android:onClick="selectProfile"
    android:baselineAligned="false">


    <LinearLayout
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1"
        android:orientation="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="16dp"
            android:layout_marginLeft="16dp"
            android:layout_marginTop="9dp"
            android:layout_marginEnd="8dp"
            android:layout_marginRight="8dp"
            android:orientation="horizontal">

            <TextView
                android:id="@+id/profile_item_label"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginRight="8dp"
                android:singleLine="true"
                android:text="Profile Item"
                android:textColor="#FFFFFF"
                android:textStyle="bold" />

            <TextView
                android:id="@+id/state_indicator"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_gravity="center"
                android:background="@drawable/successfully_state_shape"
                android:gravity="center"
                android:text="@string/connected_state"
                android:textColor="@color/white"
                android:textSize="10sp"
                android:textStyle="bold"
                android:visibility="visible" />
        </LinearLayout>

        <TextView
            android:id="@+id/profile_server_label"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="16dp"
            android:layout_marginRight="8dp"
            android:text="Server"
            android:layout_marginStart="16dp"
            android:layout_marginEnd="8dp" />
    </LinearLayout>

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="match_parent">

        <ImageButton
            android:id="@+id/edit_btn"
            style="@android:style/Widget.Holo.Button.Borderless"
            android:layout_width="48dp"
            android:layout_height="match_parent"
            android:contentDescription="TODO"
            android:src="@drawable/ic_menu_edit"
            android:visibility="visible" />

        <ImageButton
            android:id="@+id/delete_btn"
            style="@android:style/Widget.Holo.Button.Borderless"
            android:layout_width="48dp"
            android:layout_height="match_parent"
            android:src="@drawable/ic_menu_delete"
            android:visibility="visible" />

        <ImageButton
            android:id="@+id/connect_btn"
            style="@android:style/Widget.Holo.Button.Borderless"
            android:layout_width="48dp"
            android:layout_height="match_parent"
            android:contentDescription="TODO"
            android:src="@drawable/ic_menu_send"
            android:visibility="visible" />
    </LinearLayout>
</LinearLayout>